package com.example.demo.ReadService.impl;

import com.example.demo.ReadService.ReadService;
import com.example.demo.pojo.ChuZhiKa;
import com.example.demo.pojo.HuiYuan;
import com.example.demo.pojo.YuE;
import com.example.demo.readDao.ReadDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service

public class ReadServiceImal implements ReadService {
    @Autowired
    private ReadDao dao;
    @Override
    public void batchInsertModRepositories(List<ChuZhiKa> dataList) {
        dao.insertshuju(dataList);
    }

    @Override
    public void batchInsertModRepositories2(List<ChuZhiKa> dataList) {
        dao.insertshuju1(dataList);
    }

    @Override
    public void batchInsertModRepositories3(List<HuiYuan> dataList) {
        dao.insertHuiYuan(dataList);
    }

    @Override
    public void batchInsertModRepositories4(List<YuE> dataList) {
        dao.updateYuE(dataList);
    }
}
